package com.secsys.model;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TbSysUser entity. @author MyEclipse Persistence Tools
 */

public class TbSysUser implements java.io.Serializable {

	// Fields

	private Integer id;
	private TbSysRole tbSysRole;
	private String userName;
	private String password;
	private String email;
	private String msn;
	private String qq;
	private String sex;
	private Date brithday;
	private String resume;
	private String company;
	private String career;
	private String province;
	private String city;
	private Integer level;
	private Date registerTime;
	private String userStatue;
	private String onlineStatue;
	private String photo;
	private String registerAddr;
//	private Set tbSysGroups = new HashSet(0);
	private Set tbBbsReplies = new HashSet(0);
	private Set tbBbsPosts = new HashSet(0);
	private Set tbSysUserlogons = new HashSet(0);
	private Set tbSysFriendsesForUserNo = new HashSet(0);
	private Set tbSysFriendsesForFriendsId = new HashSet(0);
	// Constructors

	public Set getTbSysFriendsesForUserNo() {
		return tbSysFriendsesForUserNo;
	}

	public void setTbSysFriendsesForUserNo(Set tbSysFriendsesForUserNo) {
		this.tbSysFriendsesForUserNo = tbSysFriendsesForUserNo;
	}

	public Set getTbSysFriendsesForFriendsId() {
		return tbSysFriendsesForFriendsId;
	}

	public void setTbSysFriendsesForFriendsId(Set tbSysFriendsesForFriendsId) {
		this.tbSysFriendsesForFriendsId = tbSysFriendsesForFriendsId;
	}

	/** default constructor */
	public TbSysUser() {
	}

	/** minimal constructor */
	public TbSysUser(String userName, String password, String email,
			Integer level, String userStatue, String registerAddr) {
		this.userName = userName;
		this.password = password;
		this.email = email;
		this.level = level;
		this.userStatue = userStatue;
		this.registerAddr = registerAddr;
	}

	/** full constructor */
	public TbSysUser(TbSysRole tbSysRole, String userName, String password,
			String email, String msn, String qq, String sex,
			Timestamp brithday, String resume, String company, String career,
			String province, String city, Integer level,
			Timestamp registerTime, String userStatue, String onlineStatue,
			String photo, String registerAddr, Set tbSysGroups,
			Set tbBbsReplies, Set tbBbsPosts, Set tbSysUserlogons) {
		this.tbSysRole = tbSysRole;
		this.userName = userName;
		this.password = password;
		this.email = email;
		this.msn = msn;
		this.qq = qq;
		this.sex = sex;
		this.brithday = brithday;
		this.resume = resume;
		this.company = company;
		this.career = career;
		this.province = province;
		this.city = city;
		this.level = level;
		this.registerTime = registerTime;
		this.userStatue = userStatue;
		this.onlineStatue = onlineStatue;
		this.photo = photo;
		this.registerAddr = registerAddr;
		//this.tbSysGroups = tbSysGroups;
		this.tbBbsReplies = tbBbsReplies;
		this.tbBbsPosts = tbBbsPosts;
		this.tbSysUserlogons = tbSysUserlogons;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public TbSysRole getTbSysRole() {
		return this.tbSysRole;
	}

	public void setTbSysRole(TbSysRole tbSysRole) {
		this.tbSysRole = tbSysRole;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMsn() {
		return this.msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBrithday() {
		return this.brithday;
	}

	public void setBrithday(Date brithday) {
		this.brithday = brithday;
	}

	public String getResume() {
		return this.resume;
	}

	public void setResume(String resume) {
		this.resume = resume;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getCareer() {
		return this.career;
	}

	public void setCareer(String career) {
		this.career = career;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Date getRegisterTime() {
		return this.registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public String getUserStatue() {
		return this.userStatue;
	}

	public void setUserStatue(String userStatue) {
		this.userStatue = userStatue;
	}

	public String getOnlineStatue() {
		return this.onlineStatue;
	}

	public void setOnlineStatue(String onlineStatue) {
		this.onlineStatue = onlineStatue;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getRegisterAddr() {
		return this.registerAddr;
	}

	public void setRegisterAddr(String registerAddr) {
		this.registerAddr = registerAddr;
	}

//	public Set getTbSysGroups() {
//		return this.tbSysGroups;
//	}
//
//	public void setTbSysGroups(Set tbSysGroups) {
//		this.tbSysGroups = tbSysGroups;
//	}

	public Set getTbBbsReplies() {
		return this.tbBbsReplies;
	}

	public void setTbBbsReplies(Set tbBbsReplies) {
		this.tbBbsReplies = tbBbsReplies;
	}

	public Set getTbBbsPosts() {
		return this.tbBbsPosts;
	}

	public void setTbBbsPosts(Set tbBbsPosts) {
		this.tbBbsPosts = tbBbsPosts;
	}

	public Set getTbSysUserlogons() {
		return this.tbSysUserlogons;
	}

	public void setTbSysUserlogons(Set tbSysUserlogons) {
		this.tbSysUserlogons = tbSysUserlogons;
	}

}